package cn.hg.solon.plugin.activerecord.demo.common;

import com.jfinal.json.JFinalJson;
import com.jfinal.plugin.activerecord.Model;

/**
 * 自定义Model基类
 * 
 * @author 胡高
 */
public abstract class BaseModel<M extends Model<M>> extends Model<M> {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 4480068767017867478L;

    /* (non-Javadoc)
     * @see com.jfinal.plugin.activerecord.Model#toString()
     */
    @Override
    public String toString() {
        return JFinalJson.getJson().toJson(this);
    }
}
